{{about|the decorative block|the item|Iron Ingot}}
{{Block
| image = Iron Bars (EW).png
| extratext = [[#Renders|View all renders]]
| transparent = Yes
| light = No
| tool = wooden pickaxe
| renewable = Yes
| stackable = Yes (64)
| flammable = No
| lavasusceptible = No
}}

'''Iron bars''' are [[blocks]] that serve a similar purpose to [[glass pane]]s, but made of iron instead of [[glass]].

== Obtaining ==
=== Breaking ===
Iron bars can be mined using any pickaxe. If mined without a pickaxe, it drops nothing.
{{breaking row|horizontal=1|Iron Bars|Pickaxe|Wood}}

=== Natural generation ===
Iron bars can be found in parts of [[stronghold]]s, [[woodland mansion]]s, desert and plains [[village]]s, [[igloo]] basements, [[ruined portal]]s, and [[trail ruins]].

In [[the End]], 2–3 [[obsidian pillar]]s have iron bars around their [[end crystal]]s.

=== Post-generation ===
Iron bars regenerate on [[End spike|end pillar]]s when the [[ender dragon]] is respawned.

=== Crafting ===
{{Crafting
|A1= Iron Ingot |B1= Iron Ingot |C1= Iron Ingot
|A2= Iron Ingot |B2= Iron Ingot |C2= Iron Ingot
|Output= Iron Bars,16
|type= Decoration block
}}

Iron bars are not a source of iron. Once crafted, iron bars cannot be [[smelting|smelted]] into [[iron nugget]]s or ingots.

== Usage ==
[[File:Arrow Slits.png|thumb|Iron bars used to create arrow slits.]]
As with [[glass pane]]s and [[fence]]s, iron bars can be used to create narrow slits when placed between a [[door]] and a solid block. Mobs can see through and attack through these gaps, and arrows may be shot through them. Also as with fences and glass panes, arrows cannot be shot through iron bars themselves.

[[Endermen]] seen through iron bars do not become angry. The [[ender dragon]] cannot destroy iron bars (some of the [[end crystal]]s are protected by them), which makes them a useful material in [[the End]].

=== Placement ===
Iron bars can be placed in much the same way as [[fence]]s or [[glass pane]]s. If no solid block is adjacent to the bars, they have appearance of a slim, tall column. If something is placed next to iron bars, they appear either flat, [[File:Curve.png|text-top]] shaped, [[File:T junction.png|text-top]] shaped or [[File:Cross.png|text-top]] shaped, depending on the blocks surrounding it.

=== Curing ===
Iron bars speed up the curing process of [[zombie villager]]s.

== Sounds ==
{{Sound table/Block/Metal}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Iron Bars
|spritetype=block
|nameid=iron_bars
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Iron Bars
|spritetype=block
|nameid=iron_bars
|id=101
|foot=1}}

=== Block states ===
{{see also|Block states}}

{{/BS}}

== History ==

{{History|java beta}}
{{History||July 11, 2011|link=http://www.minecraftforum.net/topic/467338-18-updates-ravines-strongholds/page__st__100__p__6173261#entry6173261|[[Notch]] revealed two new screenshots of a [[stronghold]] (in two different brightness settings) where the bars can be clearly seen alongside other common stronghold [[block]]s. The [[light]]ing differences have been explained a bit (though not necessarily completely correctly) by a user on the [[Minecraft Forum|forums]].}}
{{History||1.8|snap=Pre-release|[[File:Iron Bars (unconnected) JE1 BE1.png|36px]] [[File:Iron Bars (N) JE1 BE1.png|36px]] [[File:Iron Bars (E) JE1 BE1.png|36px]] [[File:Iron Bars (S) JE1 BE1.png|36px]] [[File:Iron Bars (W) JE1 BE1.png|36px]] [[File:Iron Bars (NS) JE1 BE1.png|36px]] [[File:Iron Bars (EW) JE1 BE1.png|36px]] [[File:Iron Bars (NE) JE1 BE1.png|36px]] [[File:Iron Bars (ES) JE1 BE1.png|36px]] [[File:Iron Bars (SW) JE1 BE1.png|36px]] [[File:Iron Bars (NW) JE1 BE1.png|36px]] [[File:Iron Bars (ESW) JE1 BE1.png|36px]] [[File:Iron Bars (NSW) JE1 BE1.png|36px]] [[File:Iron Bars (NEW) JE1 BE1.png|36px]] [[File:Iron Bars (NES) JE1 BE1.png|36px]] <br/>[[File:Iron Bars (texture) JE1 BE1.png|32px]] Added iron bars.
|[[File:Iron Bars (connected vertical) JE1.png|32px]] Iron bars currently do not render their side edge faces. Also, their top and bottom faces are correctly not rendered when connected to other [[block]]s.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 6|The breaking time for iron bars is now greatly reduced, and depends on the [[tiers|pickaxe's material]].}}
{{History||1.4.2|snap=12w32a|[[Zombie villager]]s can now be cured. Putting iron bars close to the zombie villager helps speed up the process.}}
{{History||1.7.2|snap=13w41a|Iron bars now connect to [[glass]], [[stained glass]] and [[glass pane]]s.}}
{{History||1.8|snap=14w03a|[[File:Iron Bars 14w03a.png|32px]] Iron bars now appear completely opaque.}}
{{History|||snap=14w03b|Iron bars now render as normal again.<ref>{{bug|MC-44990}}</ref>}}
{{History|||snap=14w10a|[[File:Iron Bars (connected vertical) JE2.png|32px]] Iron bars on top of one another display now a texture at the top/bottom joint of the two [[block]]s.}}
{{History||1.9|snap=15w31a|[[File:Iron Bars (unconnected) JE2.png|36px]] Iron bars without any connecting blocks are now 2x2 pixels in footprint (rather than [[File:Iron Bars (unconnected) JE1 BE1.png|36px]].)
|[[File:Iron Bars (NESW) JE2.png|36px]] [[File:Iron Bars (N) JE2.png|36px]] [[File:Iron Bars (E) JE2.png|36px]] [[File:Iron Bars (S) JE2.png|36px]] [[File:Iron Bars (W) JE2.png|36px]] [[File:Iron Bars (NS) JE2.png|36px]] [[File:Iron Bars (EW) JE2.png|36px]] [[File:Iron Bars (NE) JE2.png|36px]] [[File:Iron Bars (ES) JE2.png|36px]] [[File:Iron Bars (SW) JE2.png|36px]] [[File:Iron Bars (NW) JE2.png|36px]] [[File:Iron Bars (ESW) JE2.png|36px]] [[File:Iron Bars (NSW) JE2.png|36px]] [[File:Iron Bars (NEW) JE2.png|36px]] [[File:Iron Bars (NES) JE2.png|36px]] The outside edges of iron bars now have textures.
|The tallest obsidian pillars had iron bars around their end crystals, until [[16w07a]].
|The [[ender dragon]] can no longer destroy iron bars.}}
{{History|||snap=15w43a|Iron bars now generate within [[igloo]] basements.}}
{{History|||snap=15w46a|Iron bars center beams now have both edge side texture, which has changed the textures from [[File:Iron Bars (E) JE2.png|36px]] [[File:Iron Bars (S) JE2.png|36px]] to [[File:Iron Bars (E) JE3.png|36px]] [[File:Iron Bars (S) JE3.png|36px]].}}
{{History|||snap=16w07a|Iron bars have been removed from [[obsidian pillar]]s.}}
{{History|||snap=pre1|Two of the shorter, thinner obsidian pillars in [[the End]] now have a cage of iron bars around their [[end crystal]]s.}}
{{History||1.11|snap=16w39a|Iron bars now generate in [[woodland mansion]]s.}}
{{History||1.12|snap=17w15a|Iron bars now connect to the solid back sides of [[stairs]].}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[block]]'s numeral ID was 101.}}
{{History|||snap=18w10c|[[Water]] can now be placed on the same block as iron bars.}}
{{History||1.14|snap=18w43a|[[File:Iron Bars (unconnected).png|36px]] [[File:Iron Bars (N) JE3 BE2.png|36px]] [[File:Iron Bars (E) JE4 BE2.png|36px]] [[File:Iron Bars (S) JE4 BE2.png|36px]] [[File:Iron Bars (W) JE3 BE2.png|36px]] [[File:Iron Bars (NS) JE3 BE2.png|36px]] [[File:Iron Bars (EW) JE3 BE2.png|36px]] [[File:Iron Bars (NE) JE3 BE2.png|36px]] [[File:Iron Bars (ES) JE3 BE2.png|36px]] [[File:Iron Bars (SW) JE3 BE2.png|36px]] [[File:Iron Bars (NW) JE3 BE2.png|36px]] [[File:Iron Bars (ESW) JE3 BE2.png|36px]] [[File:Iron Bars (NSW) JE3 BE2.png|36px]] [[File:Iron Bars (NEW) JE3 BE2.png|36px]] [[File:Iron Bars (NES) JE3 BE2.png|36px]] <br>{{InvSprite|Iron Bars}}  The textures of iron bars have been changed.}}
{{History||1.14.3|snap=pre3|[[Torch]]es can now be placed on iron bars.}}
{{History||1.16|snap=20w15a|[[Wall]]s now connect to the bottom and sides of iron bars.}}
{{History|||snap=20w16a|Iron bars can now generate as part of [[ruined portal]]s.}}
{{History||1.20|snap=23w12a|Iron bars can now generate in [[trail ruins]].}}

{{History|pocket alpha}}
{{History||v0.8.0|snap=build 1|[[File:Iron Bars (unconnected) JE1 BE1.png|36px]] [[File:Iron Bars (N) JE1 BE1.png|36px]] [[File:Iron Bars (E) JE1 BE1.png|36px]] [[File:Iron Bars (S) JE1 BE1.png|36px]] [[File:Iron Bars (W) JE1 BE1.png|36px]] [[File:Iron Bars (NS) JE1 BE1.png|36px]] [[File:Iron Bars (EW) JE1 BE1.png|36px]] [[File:Iron Bars (NE) JE1 BE1.png|36px]] [[File:Iron Bars (ES) JE1 BE1.png|36px]] [[File:Iron Bars (SW) JE1 BE1.png|36px]] [[File:Iron Bars (NW) JE1 BE1.png|36px]] [[File:Iron Bars (ESW) JE1 BE1.png|36px]] [[File:Iron Bars (NSW) JE1 BE1.png|36px]] [[File:Iron Bars (NEW) JE1 BE1.png|36px]] [[File:Iron Bars (NES) JE1 BE1.png|36px]] <br>[[File:Iron Bars (texture) JE1 BE1.png|32px]] Added iron bars.}}
{{History||v0.9.0|snap=build 1|Iron bars now spawn naturally in [[stronghold]]s and [[village]]s.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Iron bars now generate on top of [[obsidian pillar|end pillars]].
|Iron bars now generate within [[igloo]] basements.}}
{{History||1.1.0|snap=alpha 1.1.0.0|Iron bars now generate in [[woodland mansion]]s.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|[[File:Iron Bars (unconnected) BE2.png|36px]] Iron bars without any connecting [[block]]s are now 2x2 pixels in footprint (rather than [[File:Iron Bars (unconnected) JE1 BE1.png|36px]].) {{check version|At least up to 1.2 was cross-shaped, but at 1.9 it is already stick-shaped.}}}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Iron Bars (unconnected) BE2.png|36px]] [[File:Iron Bars (N) JE3 BE2.png|36px]] [[File:Iron Bars (E) JE4 BE2.png|36px]] [[File:Iron Bars (S) JE4 BE2.png|36px]] [[File:Iron Bars (W) JE3 BE2.png|36px]] [[File:Iron Bars (NS) JE3 BE2.png|36px]] [[File:Iron Bars (EW) JE3 BE2.png|36px]] [[File:Iron Bars (NE) JE3 BE2.png|36px]] [[File:Iron Bars (ES) JE3 BE2.png|36px]] [[File:Iron Bars (SW) JE3 BE2.png|36px]] [[File:Iron Bars (NW) JE3 BE2.png|36px]] [[File:Iron Bars (ESW) JE3 BE2.png|36px]] [[File:Iron Bars (NSW) JE3 BE2.png|36px]] [[File:Iron Bars (NEW) JE3 BE2.png|36px]] [[File:Iron Bars (NES) JE3 BE2.png|36px]] <br>{{InvSprite|Iron Bars BE}}  The textures of iron bars have been changed.}}
{{History||1.16.0|snap=beta 1.15.0.51|{{InvSprite|Iron Bars}} The [[inventory]] icon of iron bars has now been changed to match {{el|je}}'s.}}
{{History|||snap=beta 1.16.0.57|Iron bars can now generate as part of [[ruined portal]]s.}}

{{History|console}}
{{History||xbox=TU5|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Iron Bars (unconnected) JE1 BE1.png|36px]] [[File:Iron Bars (N) JE1 BE1.png|36px]] [[File:Iron Bars (E) JE1 BE1.png|36px]] [[File:Iron Bars (S) JE1 BE1.png|36px]] [[File:Iron Bars (W) JE1 BE1.png|36px]] [[File:Iron Bars (NS) JE1 BE1.png|36px]] [[File:Iron Bars (EW) JE1 BE1.png|36px]] [[File:Iron Bars (NE) JE1 BE1.png|36px]] [[File:Iron Bars (ES) JE1 BE1.png|36px]] [[File:Iron Bars (SW) JE1 BE1.png|36px]] [[File:Iron Bars (NW) JE1 BE1.png|36px]] [[File:Iron Bars (ESW) JE1 BE1.png|36px]] [[File:Iron Bars (NSW) JE1 BE1.png|36px]] [[File:Iron Bars (NEW) JE1 BE1.png|36px]] [[File:Iron Bars (NES) JE1 BE1.png|36px]]{{verify|Are these models accurate?}}<br>[[File:Iron Bars (texture) JE1 BE1.png|32px]] Added iron bars.
|Iron bars can be found in the Miscellaneous tab in the [[Creative inventory]].}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|Moved iron bars to the Building Blocks tab in the Creative inventory.}}
{{History||xbox=TU54|xbone=CU44|ps=1.52|wiiu=Patch 24|switch=1.0.4|Iron bars now connect to the solid back side of [[stairs]].}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Iron Bars (unconnected) JE3.png|36px]] [[File:Iron Bars (N) JE3 BE2.png|36px]] [[File:Iron Bars (E) JE4 BE2.png|36px]] [[File:Iron Bars (S) JE4 BE2.png|36px]] [[File:Iron Bars (W) JE3 BE2.png|36px]] [[File:Iron Bars (NS) JE3 BE2.png|36px]] [[File:Iron Bars (EW) JE3 BE2.png|36px]] [[File:Iron Bars (NE) JE3 BE2.png|36px]] [[File:Iron Bars (ES) JE3 BE2.png|36px]] [[File:Iron Bars (SW) JE3 BE2.png|36px]] [[File:Iron Bars (NW) JE3 BE2.png|36px]] [[File:Iron Bars (ESW) JE3 BE2.png|36px]] [[File:Iron Bars (NSW) JE3 BE2.png|36px]] [[File:Iron Bars (NEW) JE3 BE2.png|36px]] [[File:Iron Bars (NES) JE3 BE2.png|36px]]{{verify|Are these models accurate?}}<br>{{InvSprite|Iron Bars}} The textures of iron bars have been changed.}}

{{History|new 3ds}}
{{History||0.1.0| [[File:Iron Bars (unconnected) BE2.png|36px]] [[File:Iron Bars (N) JE1 BE1.png|36px]] [[File:Iron Bars (E) JE1 BE1.png|36px]] [[File:Iron Bars (S) JE1 BE1.png|36px]] [[File:Iron Bars (W) JE1 BE1.png|36px]] [[File:Iron Bars (NS) JE1 BE1.png|36px]] [[File:Iron Bars (EW) JE1 BE1.png|36px]] [[File:Iron Bars (NE) JE1 BE1.png|36px]] [[File:Iron Bars (ES) JE1 BE1.png|36px]] [[File:Iron Bars (SW) JE1 BE1.png|36px]] [[File:Iron Bars (NW) JE1 BE1.png|36px]] [[File:Iron Bars (ESW) JE1 BE1.png|36px]] [[File:Iron Bars (NSW) JE1 BE1.png|36px]] [[File:Iron Bars (NEW) JE1 BE1.png|36px]] [[File:Iron Bars (NES) JE1 BE1.png|36px]] <br>[[File:Iron Bars (texture) JE1 BE1.png|32px]] Added iron bars.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* {{IN|java}}, a 2×2 area made of iron bars can make a square-shaped hole big enough for the [[player]] and most [[mob]]s to fit through, but not [[rain]], [[water]], etc. that can be used as an easy entrance for an underwater house, and even an exit if [[piston]]s are used. [[Glass pane]]s work in the same way.
* If a [[sign]] or a [[painting]] is placed on iron bars, it appears to float in the air.
* Despite apparently being thin enough to do so, iron bars do not let a [[ghast]]'s explosion touch the block beneath them as long as the block is protected from other angles of the explosion affecting it.
* If an iron bar is connected to a block and a [[rail]] is placed on the block, the top texture of the iron bar disappears.
* While curing a [[zombie villager]], iron bars placed nearby speed up the healing process. The same happens with [[bed]]s, and both these things occur in the stereotypical prison cell.
* [[Arrow]]s cannot be shot through iron bars.
* Because iron bars are 1 block high, the player can normally jump over iron bars, unlike fences.

== Gallery ==
=== Renders ===
<gallery>
Iron Bars (unconnected).png | Unconnected
Iron Bars (N).png | North
Iron Bars (E).png | East
Iron Bars (S).png | South
Iron Bars (W).png | West
Iron Bars (NS).png | North and south
Iron Bars (EW).png | East and west
Iron Bars (NE).png | North and east
Iron Bars (ES).png | East and south
Iron Bars (SW).png | South and west
Iron Bars (NW).png | North and west
Iron Bars (ESW).png | East, south and west
Iron Bars (NSW).png | North, south, west
Iron Bars (NEW).png | North, east, west
Iron Bars (NES).png | North, east, south
Iron Bars (NESW).png | Connected from all sides
Iron Bars (unconnected) BE.png| Unconnected (Bedrock Edition)
</gallery>

=== Screenshots ===
<gallery>
Iron bars connected to stone bricks.png|The first image of the bars that Jeb posted, where the iron bars can be seen to the right of the center.
Ruins1.png|Image posted by Notch, here we can see iron bars to the left and right of the center.
Iron bars next to lava in village.png|Naturally occurring iron bars at a [[blacksmith]]'s shop in a [[village]].
Cell 1.8.png|A jail cell made out of iron bars and [[cobblestone]].
Underwater iron bars.png|[[Water]] does not flow through the holes in the bars, but the [[player]] can fit inside them.
CagedEnderCrystal.png|Natural-generated iron bars found in [[the End]] surrounding an [[end crystal]].
</gallery>

== References ==
{{Reflist}}

{{Blocks|Building}}

[[Category:Manufactured blocks]]
[[Category:Generated structure blocks]]
[[Category:Natural blocks]]

[[cs:Železné mříže]]
[[de:Eisengitter]]
[[es:Barrotes de hierro]]
[[fr:Barreaux de fer]]
[[ja:鉄格子]]
[[ko:철창]]
[[nl:Tralies]]
[[pl:Żelazne kraty]]
[[pt:Grades de ferro]]
[[ru:Железная решётка]]
[[uk:Залізні ґрати]]
[[zh:铁栏杆]]
